package org.csu.zhangdian.service;

import org.csu.zhangdian.domain.LevelRule;
import org.csu.zhangdian.dao.LevelRuleDAO;
import org.csu.zhangdian.service.LevelRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class LevelRuleServiceImpl implements LevelRuleService {

    @Autowired
    private LevelRuleDAO levelRuleDAO;

    @Override
    public ArrayList<LevelRule> getAllLevelRule() {
        return levelRuleDAO.findAll();
    }
}
